package com.zxl.yjb.adapter;

import android.support.annotation.Nullable;

import com.amap.api.services.core.PoiItem;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zxl.yjb.R;

import java.util.List;

public class PositionAdapter extends BaseQuickAdapter<PoiItem,BaseViewHolder> {

    public PositionAdapter(int layoutResId, @Nullable List<PoiItem> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PoiItem item) {
        helper.setText(R.id.tv_position_name,item.getTitle());
        helper.setText(R.id.tv_position_location,item.getSnippet());
    }
}
